package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.dto.StockTransactionQueryDTO;
import com.project.entity.StockTransactions;
import com.project.vo.StockTransactionListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StockTransactionsMapper extends BaseMapper<StockTransactions> {
    /**
     * 分页查询库存流水列表
     *
     * @param page
     */
    Page<StockTransactionListVO> queryStockTransactionPage(@Param("page")Page<StockTransactionListVO> page,@Param("dto") StockTransactionQueryDTO stockDto);

    /**
     * 根据id查询库存流水
     *
     * @param id
     */
    StockTransactionListVO getStockTransactionById(Integer id);
}
